package com.red.usespringboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringApplicationRunListener;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

public class RedSpringApplicationRunListener implements SpringApplicationRunListener {

    public RedSpringApplicationRunListener(SpringApplication application, String[] args)  {
    }


    @Override
    public void started(ConfigurableApplicationContext context) {
        System.out.println("启动中");
    }

    @Override
    public void environmentPrepared(ConfigurableEnvironment environment) {
        System.out.println("环境准备完成");
    }

    @Override
    public void contextPrepared(ConfigurableApplicationContext context) {
        System.out.println("容器创建完成");
    }
}
